package com.hcc.repository.gen.config;

import com.hcc.repository.core.utils.StrUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * ControllerConfig
 *
 * @author hushengjun
 * @date 2023/9/17
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ControllerConfig extends BasicConfig {

    private static final String DEFAULT_SUFFIX = "Controller";

    private boolean restCtrl = true;

    @Override
    public String getSuffix() {
        return StrUtils.isEmpty(super.getSuffix()) ? DEFAULT_SUFFIX : super.getSuffix();
    }


}
